package com.project.design.algorithm;

import java.util.Arrays;

public class Client {

    private static final Integer[] str = {10,5,48,36,99,79,28,66,50,1};

    public static void main(String[] args) {
        //冒泡排序
//        BubbleSorting bubbleSorting = new BubbleSorting();
//        bubbleSorting.bubbleSorting(str);
//        System.out.println(Arrays.toString(str));
        //选择排序
//        SelectionSort selectionSort = new SelectionSort();
//        selectionSort.selectionSort(str);
//        System.out.println(Arrays.toString(str));

//        InsertionSort insertionSort = new InsertionSort();
//        insertionSort.insertionSort(str);

//        ShellSort shellSort = new ShellSort();
//        shellSort.shellSort(str);

//        MergeSort mergeSort = new MergeSort();
//        mergeSort.mergeSort(str);

        QuickSort q = new QuickSort();
        q.sort(str,0,str.length-1);

        System.out.println(Arrays.toString(str));
    }
}
